home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm2 / xraid123.lha / START-AREXX < prev    next >
Text File  |  1995-04-17  |  2KB  |  56 lines

  1. ; ========================     Start-ARexx     ==========================
  2. ; Loads the libraries required by ARexx and starts the ARexx server.
  3. ; This could be placed in your startup-sequence to activate ARexx.
  4.  
  5.  Assign RexxC: D0H1:RexxC
  6.  
  7. ; N.B. The double-precision math library mathieeedoubbas.library must
  8. ; be in the LIBS: directory.  If this is not convenient, copy it into
  9. ; this disk's :libs directory and uncomment the following line ...
  10.  
  11.  RexxC:loadlib Libs:mathieeedoubbas.library
  12.  
  13.  RexxC:loadlib Libs:rexxsyslib.library
  14.  if error
  15.      echo "Couldn't load rexxsyslib.library"
  16.      quit 20
  17.  endif
  18.  RexxC:loadlib Libs:rexxsupport.library
  19.  if error
  20.      echo "Couldn't load rexxsupport.library"
  21.      quit 20
  22.  endif
  23.  RexxC:loadlib Libs:rexxdossupport.library
  24.  if error
  25.      echo "Couldn't load rexxdossupport.library"
  26.  endif
  27.  RexxC:loadlib Libs:hGRexxSupport.library
  28.  if error
  29.      echo "Couldn't load hGRexxSupport.library"
  30.  endif
  31.  
  32. ; Start the ARexx server if it's not already active
  33.   RexxC:waitforport -i REXX
  34.   if warn
  35.      RexxC:rexxmast >nil:
  36.      RexxC:waitforport REXX
  37.   endif
  38.  
  39. ; Make the support library available
  40.   RexxC:rxlib rexxsupport.library 0 -30 0
  41.  
  42. ; Make the WB2 DOS support library available
  43.   RexxC:rxlib rexxdossupport.library 0 -30 2
  44.  
  45. ; Make the WB2 DOS support library available
  46.   RexxC:rxlib hGRexxSupport.library 0 -30 0
  47.  
  48. ; Assign the REXX: directory if appropriate
  49.   Assign REXX: OS2:rexx
  50.  
  51. ; Start up RexxPlus server
  52.  IF EXISTS REXXP:RPstart
  53.   Run RexxP:RPstart
  54.   RexxC:waitforport -i RPREXX
  55.  ENDIF
  56.